#include <iostream>
#include <stdio.h>

using namespace std;

int main() {
    int n = 0;
    cin >> n;
    int sum = 2;
    for(int i = 2; i < 2 * n; i += 2){
        sum += i;
    }
    cout << sum;
    return 0;
}